package Reader;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.Arrays;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        FileInputStream inputStream = new FileInputStream("D:\\test\\a.java");
        byte[]b=new byte[1024];
        int n;
        while ((n=inputStream.read(b))!=-1){
            System.out.println(Arrays.toString(b));
        }
        inputStream.close();
    }
}
